Place Statement In Block (PSIB)

Description:

The statement of a loop should always be a block. The then and else parts of if statements should always be in blocks. This makes it easier to add statements without accidentally introducing bugs (due to forgetting to add braces).

Incorrect:

if val < 0 then 
    exit;
    
while val >= 10 do
    val := val / 10;

Correct:

if val < 0 then
begin
    exit;
end;
    
while val >= 10 do
begin
    val := val / 10;
end;